﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AteneoLibriBusinessLogic.Entities;

namespace AteneoLibriBusinessLogic.TOA
{
    public class NationAssembler
    {
        public static Nation Assembler(AteneoLibriEntityFramework.Nation item)
        {
            Nation n = new Nation();

            n.IdNation = item.IdNation;
            n.Description = item.Description;

            return n;
        }

        public static AteneoLibriEntityFramework.Nation DeAssembler(Nation item)
        {
            AteneoLibriEntityFramework.Nation n = new AteneoLibriEntityFramework.Nation();

            n.IdNation = item.IdNation;
            n.Description = item.Description;

            return n;
        }

        public static void WriteToEntity(AteneoLibriEntityFramework.Nation entity, Nation item)
        {
            entity.IdNation = item.IdNation;
            entity.Description = item.Description;
        }
    }
}
